package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.pojo.Building;

import java.util.List;
import java.util.Map;

public interface BuildingMapper {
    int deleteByPrimaryKey(Integer buildingId);

    int insert(Building record);

    int insertSelective(Building record);

    Building selectByPrimaryKey(Integer buildingId);

    int updateByPrimaryKeySelective(Building record);

    int updateByPrimaryKey(Building record);
    /**
     * 根据Building查询楼栋信息
     * author:liqian
     * date:2018-11-12 11:47
     */
    Building selectByBuilding(Building building);
    /**
     * 根据Building查询楼栋信息
     * author:liqian
     * date:2018-11-12 11:48
     */
    List<Building> showAll(Map<String,Object> queryMap);
    /**
     * 查询该机构的所有楼栋信息——包含房间、床位信息
     * author:liqian
     * date:2018-11-14 11:40
     */
    List<Building> showAlls(Building building);

    /**
     * 查询条数
     *
     * @param building
     * @return the count.
     */
    int selectCount(Building building);
}